home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.2 KB | 31 lines | [TEXT/GEOL] |
- Item 1211308 29-Oct-87 17:55
-
- From: D0542 Productive Tech, Dev, Mark Gilford
-
- To: MACAPP$ MacApp Interest List
-
- Sub: Custom Scroll Bar Behavior
-
- Hello,folks:
-
- In my application I have a window with vertical and horizontal scroll bars.
- The view consists of a series of rectangular areas, each the size of the open
- window, and I want to constrain things so that only a single complete rectangle
- can be displayed at any one time--in other words displaying half of one
- rectangle and half of the one to the right of it is not allowed.
-
- To control the scroll bar's behavior when the user clicks on the arrows or in
- the bar area I did an override of TFrame.ScrollStep which changes the delta
- value to force a scroll (really a jump) to the next rectangular area. This
- works fine, but I am now trying to handle the situation when the user presses
- on the thumb and drags it---again I want to constrain the scrolling so that it
- is "chunky" and goes as a minimum to the next rectangle, as opposed to a pixel
- by pixel approach which is standard.
-
- Any ideas on the best way to approach this?
-
- In advance, many thanks.
-
- ----Mark Gilford
-
-